import request from '@/utils/request'

// 获取标签页
export function getTabList(query) {
  return request({
    url: '/archive/list/query/fication/list',
    method: 'post',
    params: query
  })
}

// 获取所有门类
export function listNoPage(query) {
  return request({
    url: '/archive/category/listnopagehasgrouphaspro',
    method: 'get',
    params: query
  })
}

// 查询门类
export function getArchivesCategory(data) {
  return request({
    url: '/archive/list/query/category/list',
    method: 'post',
    params: data
  })
}

// 获取展示字段
export function getshowfield(data) {
  return request({
    url: '/archive/cateMdataList/getshowfield',
    method: 'post',
    data: data
  })
}

// 获取查询字段
export function getqueryfield(data) {
  return request({
    url: '/archive/cateMdataList/getqueryfield',
    method: 'post',
    data: data
  })
}

// 获取删除数据
export function getdatalist(data) {
  return request({
    url: '/archive/wjhsz/getdatalist?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    method: 'post',
    data: data
  })
}

// 通过id获取门类id
export function getcateidbyid(data) {
  return request({
    url: '/archive/wjhsz/getcateidbyid',
    method: 'post',
    data: data
  })
}

// 恢复
export function restore(data) {
  return request({
    url: '/archive/wjhsz/restoreda',
    method: 'post',
    data: data
  })
}

// 彻底删除
export function completelyDelete(data) {
  return request({
    url: '/archive/wjhsz/deleteda',
    method: 'post',
    data: data
  })
}

// 获取穿梭框右侧数据
export function gethead(data) {
  return request({
    url: '/archive/wjhsz/gethead',
    method: 'post',
    data: data
  })
}

// 添加表头
export function addhead(data) {
  return request({
    url: '/archive/wjhsz/addhead',
    method: 'post',
    data: data
  })
}
